import React from 'react';
import { AutoThreeScene } from './AutoThreeScene';

/**
 * Three.js页面组件工厂
 * 根据页面路径创建对应的页面组件
 */
export const createThreePage = (pagePath: string) => {
  const PageComponent: React.FC = () => {
    return <AutoThreeScene pagePath={pagePath} />;
  };

  // 设置显示名称，便于调试
  PageComponent.displayName = `ThreePage(${pagePath})`;

  return PageComponent;
}; 